package dk.fuddi.conversion;

import org.apache.commons.lang.StringEscapeUtils;

/**
 * User: jen
 * Date: May 17, 2007
 * Time: 4:01:37 PM
 */
public class JavaScriptUtils implements DeEncodeInterface {

	private String name = "Java Script";

	public String encode(String javaScript) {
		System.out.println("JavaScriptUtils.encode");
		return StringEscapeUtils.escapeJavaScript(javaScript);
	}

	public String decode(String javaScript) {
		System.out.println("JavaScriptUtils.decode");
		return StringEscapeUtils.unescapeJavaScript(javaScript);
	}

	public String toString() {
		return name;
	}
}
